Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : ORIX App Universe8 * File : src/app/[locale]/support/page.tsx9 * Module : app10 * Repository : https://git.spboucher.ai/orix-spboucher-ai11 * Project Website : https://www.orixlab.dev12 * Created : 2026-11-2113 * Last Modified : 2026-11-2114 *15 * Author : Simon-Pierre Boucher16 * Position : Professor of Finance17 * Institution : Université du Québec en Outaouais (UQO)18 * Organization : SP Boucher19 * Website : https://spboucher.ai20 * Git : https://git.spboucher.ai21 *22 * Preferred Contact: support@spboucher.ai23 * Development : dev@spboucher.ai24 * Support : support@spboucher.ai25 * Security/Admin : admin@spboucher.ai26 *27 * Copyright (c) 202628 * Simon-Pierre Boucher29 * All rights reserved where applicable. This file is governed by the30 * applicable project license, copyright notices and relevant law.31 * Existing third-party rights and notices remain unaffected.32 *33 * License : None specified (no license file in this repository)34 *35 * Do not embed credentials, private keys, access tokens,36 * certificates or confidential personal information.37 *38 * =============================================================================39 * END OF SP BOUCHER SOURCE HEADER40 * =============================================================================41 */4243import type { Metadata } from "next";44import Link from "next/link";45import { Reveal } from "@/components/ui/Reveal";46import { Words } from "@/components/ui/Words";47import { Arrow } from "@/components/ui/Badges";48import { Starfield } from "@/components/hero/Starfield";49import { WalletCard } from "@/components/support/WalletCard";50import { href, isLocale, type Locale } from "@/lib/i18n";51import { supportText, wallets } from "@/lib/support";52import { alternates } from "@/lib/seo";5354export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }): Promise<Metadata> {55 const { locale: raw } = await params; const locale: Locale = isLocale(raw) ? raw : "en";56 const t = supportText[locale];57 return { title: t.nav, description: t.lead, alternates: alternates("/support", locale) };58}5960export default async function Support({ params }: { params: Promise<{ locale: string }> }) {61 const { locale: raw } = await params; const locale: Locale = isLocale(raw) ? raw : "en";62 const t = supportText[locale];63 return (64 <div data-testid="support-page">65 <header className="relative isolate overflow-hidden pb-16 pt-32 sm:pt-44">66 <div className="aurora -z-10" aria-hidden /><Starfield density={0.7} className="-z-10" /><div className="gridlines -z-10" aria-hidden />67 <div className="wrap text-center">68 <p className="eyebrow rise">{t.eyebrow}</p>69 <h1 className="display mx-auto mt-6 !text-[clamp(2.4rem,6.4vw,5.4rem)]">70 <Words now text={t.title[0]} className="block" />71 <Words now text={t.title[1]} className="block pb-[0.08em]" inner="beam-text sheen" start={t.title[0].split(" ").length + 1} />72 </h1>73 <p className="lead rise mx-auto mt-7" style={{ "--d": "0.9s" } as React.CSSProperties}>{t.lead}</p>74 <p className="rise mt-9" style={{ "--d": "1.1s" } as React.CSSProperties}><a href="#wallets" className="btn btn-primary btn-glow magnetic">{t.walletsTitle}<Arrow /></a></p>75 </div>76 </header>7778 <section className="wrap wrap-wide">79 <ul className="grid gap-5 md:grid-cols-3">80 {t.reasons.map(([title, body], i) => (81 <Reveal as="li" key={title} delay={i * 110}>82 <div className="card tilt h-full p-7">83 <span className="mono beam-text text-[0.8rem] font-semibold tracking-[0.16em]">0{i + 1}</span>84 <h2 className="h3 mt-3">{title}</h2>85 <p className="mt-2 text-[0.96rem] text-ink2">{body}</p>86 </div>87 </Reveal>88 ))}89 </ul>90 </section>9192 <section id="wallets" className="section" aria-labelledby="wallets-title">93 <div className="wrap wrap-wide">94 <Reveal>95 <p className="eyebrow">{t.walletsEyebrow}</p>96 <h2 id="wallets-title" className="h1 mt-5 max-w-4xl"><Words text={t.walletsTitle} /></h2>97 <p className="lead mt-5">{t.walletsBody}</p>98 </Reveal>99 <ul className="mt-12 grid gap-5 sm:grid-cols-2 xl:grid-cols-3">100 {wallets.map((w, i) => (101 <Reveal as="li" key={w.id} delay={(i % 3) * 110}>102 <WalletCard wallet={{ id: w.id, network: w.network, asset: w.asset, color: w.color, address: w.address, explorer: w.explorer, note: w.note[locale] }}103 labels={{ copy: t.copy(w.network), copied: t.copied, tap: t.tap, qr: t.qr, explorer: t.explorer, qrAlt: t.qrAlt(w.network, w.address) }} />104 </Reveal>105 ))}106 <Reveal as="li" className="sm:col-span-2">107 <aside className="h-full rounded-[1.5rem] border border-dashed border-line2 p-7">108 <h3 className="h3">{t.beforeTitle}</h3>109 <ul className="mt-4 grid gap-3 text-[0.95rem] text-ink2">110 {t.before.map((b, i) => <li key={i} className="flex gap-3"><span aria-hidden className="mt-[0.65em] h-1.5 w-1.5 shrink-0 rounded-full" style={{ background: "var(--beam)" }} /><span>{b}</span></li>)}111 </ul>112 </aside>113 </Reveal>114 </ul>115 </div>116 </section>117118 <section className="wrap wrap-wide pb-6">119 <Reveal>120 <div className="card flex flex-col items-start justify-between gap-6 p-7 sm:flex-row sm:items-center sm:p-9">121 <div>122 <h2 className="h3">{t.otherTitle}</h2>123 <p className="mt-2 max-w-2xl text-ink2">{t.otherBody}</p>124 </div>125 <div className="flex flex-wrap gap-3">126 <Link href={href(locale, "/apps")} className="btn btn-primary">{t.explore}<Arrow /></Link>127 <a href="mailto:contact@spboucher.ai" className="btn btn-ghost">contact@spboucher.ai</a>128 </div>129 </div>130 </Reveal>131 </section>132 </div>133 );134}135